package vip.zhy.faststart.framework.json;

import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.SneakyThrows;

public class JSON {

    private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();

    @SneakyThrows
    public static String toJSON(Object o) {
        return OBJECT_MAPPER.writeValueAsString(o);
    }

}
